import request from '@/utils/request'

// 登录
export const login = ({ isParty, mobile, partyData, smsCode }) => {
  return request.post('/passport/login', {
    form: {
      isParty,
      mobile,
      partyData,
      smsCode
    }
  })
}

// 渲染
export const render = () => {
  return request('/page/detail', {
    params: {
      pageId: 0
    }
  })
}

// 分类渲染
export const classRender = () => {
  return request('/category/list')
}

// 个人信息
export const userInfo = () => {
  return request('/user/info')
}
